import { aqiFeedbackType } from 'src/stores/types.js';
import http from '../utils/http/request.js';

const createAqiFeedback = (data:aqiFeedbackType) => {
    return http.post('/feedback/createAqiFeedback', data);
};

const addProvinceAndCity = (data:{provinceId:number, provinceName:string, cityId:number, cityName:string}) => {
    return http.post('/result/gridProvince/addGridProvince', data);
};

const getUploadToken = (fileName:string) => {
    return http.get('/oss/qiniu/getUploadToken?fileName='+fileName);
};

export default {
    createAqiFeedback,
    addProvinceAndCity,
    getUploadToken
};